package com.atguigu.gmall.item.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author zhaoshuo
 * @ClassName ItemController
 * @Description
 */
@Controller
@RequestMapping
public class ItemController {

    @GetMapping("{skuId}.html")
    public String item(@PathVariable("skuId") String skuId) {
        System.out.println("skuId: "+skuId);
        return "item";
    }
}
